#include"vector.h"
#include<iostream>
#include<string>
#include<vector>
template<class Container>
void Print(const Container& con)
{
	for (auto e : con)
	{
		cout << e << " ";
	}
	cout << endl;
}

void test_vector1()
{
	LL::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);

	for (size_t i = 0; i < v.size(); i++)
	{
		cout << v[i] << " ";
	}
	cout << endl;

	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;

	Print(v);


}

void test_vector7()
{
	LL::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.push_back(5);
	Print(v1);

	LL::vector<int> v2(v1);
	Print(v1);

	LL::vector<int> v3 = { 1,2,3,4,5,5 };
	LL::vector<int> v4 = { 1,2,3,4,5,51,1,1,1,1,1,1,1 };
	Print(v3);
	Print(v4);

	LL::vector<int> v5(v3.begin() + 1, v3.end() - 1);
	Print(v5);

	string s1("hello world");
	LL::vector<int> v6(s1.begin(), s1.end());
	Print(v6);

	//LL::vector<int> v7(10, 1);
	//Print(v7);

	/*LL::vector<size_t> v8(10u, 1u);
	Print(v8);*/

	//LL::vector<size_t> v9(10, 1);
	//Print(v9);

	/*v1 = v7;
	Print(v1);*/
}
int main()
{
	//test_vector1();
	test_vector7();
}
